home *** CD-ROM | disk | FTP | other *** search
- on MouseClick
- global gLabel, gLocLabel, gEtudAct, gNumSpr, gBoutons, gSurvolPrec
- set choix to chars(word 1 of the name of cast the castNum of sprite gNumSpr, 3, 4)
- if choix <> "HI" then
- if the optionDown and (choix = "SU") then
- set choix to "ST"
- end if
- if (choix = "HI") or (choix = "EN") then
- sound fadeOut 1, 30
- end if
- set gLocLabel to "SU:OU" && gEtudAct
- set gLabel to "SU:IN" && choix
- if the optionDown and (choix = "SU") then
- set choix to "ST"
- end if
- else
- gBoutons(relache, gNumSpr)
- set gSurvolPrec to -1
- beep()
- end if
- end
-
- on mouseDown
- global gNumSpr, g1erSprLoc, gBoutons
- set gNumSpr to -1
- repeat with i = g1erSprLoc - 1 to g1erSprLoc + 3
- if rollOver(i) then
- set gNumSpr to i
- exit repeat
- end if
- end repeat
- if gNumSpr <> -1 then
- gBoutons(appuie, gNumSpr)
- end if
- end
-
- on mouseUp
- global gNumSpr, g1erSprLoc
- curseur(1)
- set monNumSpr to -1
- repeat with i = g1erSprLoc - 1 to g1erSprLoc + 3
- if rollOver(i) then
- set monNumSpr to i
- exit repeat
- end if
- end repeat
- if (monNumSpr <> -1) and (monNumSpr = gNumSpr) then
- MouseClick()
- else
- pass()
- end if
- end
-